<?xml version="1.0" encoding="UTF-8"?>
<server description="${project.name}">

    <featureManager>
        <feature>microProfile-[# th:text="${mp_version}"/]</feature>
        [# th:if="${mp_graphql}"]
        <feature>mpGraphQL-[# th:text="${mp_graphql_version}"/]</feature>
        [/]
    </featureManager>
    [# th:if="${mp_graphql}"]
    <variable name="io.openliberty.enableGraphQLUI" value="true" />
    [/]

    <httpEndpoint id="defaultHttpEndpoint"
                  httpPort="[# th:text="${port_service_a}"/]"
                  httpsPort="9443"/>

    <webApplication location="${project.name}.war" contextRoot="${app.context.root}">
        <classloader apiTypeVisibility="+third-party" />
    </webApplication>
    <mpMetrics authentication="false"/>

    <!-- This is the keystore that will be used by SSL and by JWT. -->
    <keyStore id="defaultKeyStore" location="public.jks" type="JKS" password="atbash" />


    <!-- The MP JWT configuration that injects the caller's JWT into a ResourceScoped bean for inspection. -->
    <mpJwt id="jwtUserConsumer" keyName="theKeyId" audiences="targetService" issuer="${jwt.issuer}"/>

</server>
